import request from "@/request/request";
import qs from "qs"

export function getStoreList(data){
    let url = "/admin/store";
    let param = {
        url:url,
        method:"GET",
        params:data
    }
    return request(param);
}

export function saveStoreInfo(data){
    let url = "/admin/store/save";
    console.log("saveStoreInfo:"+qs.stringify(data))
    let param = {
        url:url,
        method:"post",
        data:qs.stringify(data)
    }
    return request(param);
}


export function deleteStore(data){
    let url = "/admin/store/"+data;
    console.log("deleteStore:"+data)
    let param = {
        url:url,
        method:"delete",
    }
    return request(param);
}



export function findStoreById(data){
    let url = "/admin/store/"+data;
    console.log("findStoreById:"+data)
    let param = {
        url:url,
        method:"Get",
    }
    return request(param);
}


